import request from '@/utils/request'

// 查询物品日期存储列表
export function listTiming(query) {
  return request({
    url: '/goods/timing/list',
    method: 'get',
    params: query
  })
}

// 查询物品日期存储详细
export function getTiming(id) {
  return request({
    url: '/goods/timing/' + id,
    method: 'get'
  })
}

// 新增物品日期存储
export function addTiming(data) {
  return request({
    url: '/goods/timing',
    method: 'post',
    data: data
  })
}

// 修改物品日期存储
export function updateTiming(data) {
  return request({
    url: '/goods/timing',
    method: 'put',
    data: data
  })
}

// 删除物品日期存储
export function delTiming(id) {
  return request({
    url: '/goods/timing/' + id,
    method: 'delete'
  })
}
